package com.cardbaobao.cardbabyclient.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Jiangzx on 10:28.
 * 查询状态
 */

public class QueryStateModel implements Parcelable{
    /**查询渠道 GJJ为公积金 SHE_BAO为社保*/
    private String channelType;
    /**查询状态 0未完成 1已完成 2失败*/
    private int state;

    public QueryStateModel(String channelType, int state) {
        this.channelType = channelType;
        this.state = state;
    }

    protected QueryStateModel(Parcel in) {
        channelType = in.readString();
        state = in.readInt();
    }

    public static final Creator<QueryStateModel> CREATOR = new Creator<QueryStateModel>() {
        @Override
        public QueryStateModel createFromParcel(Parcel in) {
            return new QueryStateModel(in);
        }

        @Override
        public QueryStateModel[] newArray(int size) {
            return new QueryStateModel[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(channelType);
        dest.writeInt(state);
    }

    public String getChannelType() {
        return channelType;
    }

    public void setChannelType(String channelType) {
        this.channelType = channelType;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }
}
